import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
// import store from './store'

// import SvgIcon from './'

// 引入antd 组件库
import Antd from "ant-design-vue";
import "antd/dist/antd.min.css";

import { $setToken } from "./utils/request";
// 刷新时 检查是否需要更新token
let token = sessionStorage.getItem("token");
if (token) {
  $setToken(token);
}

createApp(App).use(Antd).use(router).mount("#app");
